package com.sywl.dao;

import java.util.List;
import java.util.Map;

import com.sywl.orm.User;
import com.sywl.util.DataGridModel;

public interface UserDao {
	public void addUser(User user);
	public List<User> listUser();
	public void removeUser(String userName);
	public User findById(Integer id);
	
	//
	Map<String,Object> getPageListByExemple(DataGridModel dgm,User user) throws Exception;
	Map<String,Object> getPageList(DataGridModel dgm,User user) throws Exception;
	void addOrUpdate(User user) throws Exception;
	void deleteUser(List<Integer> userid)throws Exception;
	//public abstract User findById(Integer id);
	public abstract List<User> findByName(Object username)throws Exception;
	
}
